﻿using MingYuanYun.Data.Abstractions;
using System.Data;

namespace ControlCenter.Data
{
    public class RepositoryBase : IRepositoryBase
    {
        static RepositoryBase()
        {
            Dapper.SqlMapper.Settings.CommandTimeout = 600;
        }

        public IUnitOfWork UnitOfWork { get; set; }

        protected IDbConnection ControlCenterDbConn => UnitOfWork.GetControlCenterConnection();
         
    }
}
